<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Publicidad_model extends CI_Model {

  function __construct()
  {
    parent::__construct();
  }

  public function modificaPublicidad()
  {
    $data = array('nombre'=>$_POST['nombre'], 'pag1'=>$_POST['pag1'], 'pag2'=>$_POST['pag2'], 'pag3'=>$_POST['pag3']);
    $this->db->update("publicidad", $data, array("id"=>$_POST['id_publi']));

    return TRUE;
  }

}

/* End of file precios_model.php */
/* Location: ./application/models/precios_model.php */
